package com.dlc.shop.delivery.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dlc.shop.common.util.BmapPoint;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *
 *
 * @author lhd
 * @date 2020-05-23 08:26:25
 */
@Data
@TableName("tz_same_city")
public class SameCity implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "同城配送id" )
    private Long samecityId;

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "配送区域经纬度json" )
    private String positionIds;

    @Schema(description = "收费类型 1按区域收取固定配送费 2按距离收取配送费" )
    private Integer chargeType;

    @Schema(description = "起送价 是优惠券/码和满减优惠抵扣前的商品金额，运费不计入起送价。" )
    private Double startingFee;

    @Schema(description = "配送费" )
    private Double deliveryFee;

    @Schema(description = "默认距离" )
    private Double headDistance;

    @Schema(description = "每超出距离" )
    private Double overDistance;

    @Schema(description = "每超出距离费用" )
    private Double overDistanceFee;

    @Schema(description = "免费重量" )
    private Double freeWeight;

    @Schema(description = "续重重量" )
    private Double overWeight;

    @Schema(description = "续重费用" )
    private Double overWeightFee;

    @Schema(description = "启用状态 1启用 0未启用" )
    private Integer status;

    @Schema(description = "后台坐标点数组" )
    @TableField(exist = false)
    private List<BmapPoint> polygonPath;

    @Schema(description = "店铺所在纬度")
    private String shopLat;

    @Schema(description = "店铺所在经度")
    private String shopLng;

    @Schema(description = "店铺详细地址")
    private String shopAddress;

    @Schema(description = "店铺所在省份")
    private String province;

    @Schema(description = "店铺所在省份Id")
    private Long provinceId;

    @Schema(description = "店铺所在城市")
    private String city;

    @Schema(description = "店铺所在城市Id")
    private Long cityId;

    @Schema(description = "店铺所在区域")
    private String area;

    @Schema(description = "店铺所在区域Id")
    private Long areaId;

}
